package com.wk1un2.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wk1un2.entity.ArrposidProduct;
import com.wk1un2.mapper.ArrposidProductMapper;
import com.wk1un2.service.ArrposidProductService;

@Service // 扫描
public class ArrpposidProductServiceImpl implements ArrposidProductService {

	@Autowired
	private ArrposidProductMapper ArrposidProductMapper;// 自动注入mapper

	@Override
	public List<ArrposidProduct> getAll(int page, int limit, String a_id, String p_id) {
		// TODO Auto-generated method stub
		return ArrposidProductMapper.getAll(page, limit, a_id, p_id);
	}

	@Override
	public Integer count() {
		// TODO Auto-generated method stub
		return ArrposidProductMapper.count();
	}

	@Override
	public Integer add(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return ArrposidProductMapper.add(map);
	}

	@Override
	public Integer update(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return ArrposidProductMapper.update(map);
	}

	@Override
	public Integer delete(int arrp_id) {
		// TODO Auto-generated method stub
		return ArrposidProductMapper.delete(arrp_id);
	}

	@Override
	public List<Map<String, Object>> getRecPro(String a_name) {
		// TODO Auto-generated method stub
		return ArrposidProductMapper.getRecPro(a_name);
	}

}
